Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.5

ExtWebDeletePage

Scoped name

WSYEXTJS/ExtWebDeletePage

Note that this abstract function is placed in the WSYEXTJS model.

Purpose

This is an abstract PageGenerator that can be used if you want to have a delete page outside a WebEditSuite. This page is designed for use in the Ext JS for WebsydianExpress framework.

The PageGenerator includes two EventHandlers: Delete and Cancel. The Delete EventHandler calls the DeleteRow function, which physically deletes the record.

Usage

You must start by creating a function that inherits from ExtWebDeletePage:

Source Object Verb Target Object
MyDeletePage is a FNC WSYEXTJS/ExtWebDeletePage

Then you must specify the entity to delete records for by replacing the UIBasic.Update view with your own Update view - and the UiBasic.Detail view with your Fetch view

Source Object Verb Target Object
MyDeletePage replaces VW

...by VW

UIBASIC/UiBasic.Update

MyEntity.Update

MyDeletePage replaces VW

...by VW

UIBASIC/UiBasic.Detail

MyEntity.Fetch

Finally, you must enter calls to a PageGenerator in the Delete and Cancel EventHandler.

Special considerations

In many cases, you will get the delete page as part of a WebEditSuite - either by inheriting from ExtWebEditDialog or from ExtWebEditSuite.

More information